const main = require('../main/main');

describe('taxi fee', function () {
   it("should print the price", function(){

       spyOn(console,'log');

       let length = 3;
       let stoptime = 1;
       let  price = main(length,stoptime);
       expect(console.log).toHaveBeenCalledWith(7);
   });

   it("should print the price",function(){
       let length = 2;
       let stoptime = 0;
       let price = main(length,stoptime);
       expect(price).toEqual(6);
   });

   it("should print the price",function(){
       let length = 9;
       let stoptime = 4;
       let price = main(length,stoptime);
       expect(price).toEqual(13);
   });

});
